package com.xcity.game.equip;

public enum EquipSuit {

	SUIT2(2, 2),
	SUIT4(4, 4),
	;
	
	public final byte type;
	public final int count; // 需求装备数量
	
	EquipSuit(int type, int count) {
		this.type = (byte) type;
		this.count = count;
	}
	
	public static EquipSuit forType(byte type) {
		if (type == SUIT2.type) {
			return SUIT2;
		}
		if (type == SUIT4.type) {
			return SUIT4;
		}
		return null;
	}
}
